﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="wfrmAsignarAbogadoAccionJudicial.aspx.cs" Inherits="PresentationLayer.WebForm3" %>

<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style3
        {
            width: 112px;
        }
        .style8
        {
        }
        .style9
        {
            width: 195px;
        }
        .style11
        {
            width: 45px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <dx:ASPxRoundPanel ID="rdpAsignacionAbogados" runat="server" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
        CssPostfix="BlackGlass" GroupBoxCaptionOffsetY="-22px" HeaderText="Asignacion de Abogados"
        SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="100%">
        <ContentPaddings PaddingBottom="5px" PaddingLeft="2px" PaddingTop="5px" />
        <ContentPaddings PaddingLeft="2px" PaddingTop="5px" PaddingBottom="5px"></ContentPaddings>
        <HeaderStyle Height="23px">
            <Paddings PaddingBottom="0px" PaddingLeft="3px" PaddingTop="0px" />
            <Paddings PaddingLeft="3px" PaddingTop="0px" PaddingBottom="0px"></Paddings>
        </HeaderStyle>
        <PanelCollection>
            <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                <table style="width: 100%;">
                    <tr>
                        <td class="style11">
                            <div style="height: 43px; width: 389px">
                                <table style="width: 100%;">
                                    <tr>
                                        <td class="style3">
                                            <dx:ASPxButton ID="btnAsignarAbogado" runat="server" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                                CssPostfix="BlackGlass" OnClick="btnAsignarAbogado_Click" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                                Text="Asignar Abogado">
                                            </dx:ASPxButton>
                                        </td>
                                        <td>
                                            <dx:ASPxButton ID="btnConsultar" runat="server" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                                CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                                Text="Consulta Pre Legajo" Width="101px" OnClick="btnConsultar_Click">
                                            </dx:ASPxButton>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                        <td>
                            <dx:ASPxComboBox ID="cboEstado" runat="server" AutoPostBack="True" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                CssPostfix="BlackGlass" OnSelectedIndexChanged="cboEstado_SelectedIndexChanged"
                                SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Visible="False">
                                <LoadingPanelImage Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                                </LoadingPanelImage>
                                <ButtonStyle Width="11px">
                                </ButtonStyle>
                                <ValidationSettings ErrorText="Error has occurred">
                                    <ErrorFrameStyle ImageSpacing="4px">
                                        <ErrorTextPaddings PaddingLeft="4px" />
                                    </ErrorFrameStyle>
                                </ValidationSettings>
                            </dx:ASPxComboBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <dx:ASPxGridView ID="dgDocumentos" runat="server" AutoGenerateColumns="False" 
                                CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                KeyFieldName="NU_Prelegajo" 
                                OnAfterPerformCallback="dgDocumentos_AfterPerformCallback" 
                                OnHeaderFilterFillItems="dgDocumentos_HeaderFilterFillItems" 
                                OnPageIndexChanged="dgDocumentos_PageIndexChanged">
                                <Columns>
                                    <dx:GridViewDataTextColumn Caption="N° Informe" FieldName="NU_informe" 
                                        ShowInCustomizationForm="True" VisibleIndex="5">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Fecha del Informe" 
                                        ShowInCustomizationForm="True" VisibleIndex="6" FieldName="FE_Informe">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="N° Prelegajo" FieldName="NU_Prelegajo" 
                                        ShowInCustomizationForm="True" VisibleIndex="0">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataDateColumn Caption="Fecha de Recepción" 
                                        FieldName="FE_recepcion" ShowInCustomizationForm="True" UnboundType="DateTime" 
                                        VisibleIndex="1" Width="100px">
                                        <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy">
                                        </PropertiesDateEdit>
                                    </dx:GridViewDataDateColumn>
                                    <dx:GridViewDataTextColumn Caption="N° de Entrega de Memo" FieldName="NU_memo" 
                                        ShowInCustomizationForm="True" VisibleIndex="2">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Tipo de Proceso" FieldName="VR_proceso" 
                                        ShowInCustomizationForm="True" VisibleIndex="3">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Estado" FieldName="VR_estado" 
                                        ShowInCustomizationForm="True" VisibleIndex="12">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Origen de Informe" 
                                        ShowInCustomizationForm="True" VisibleIndex="4" 
                                        FieldName="tx_OrigenInforme">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Abogado" FieldName="VR_nombrepersona" 
                                        ShowInCustomizationForm="True" VisibleIndex="10">
                                    </dx:GridViewDataTextColumn>
                                </Columns>
                                <SettingsBehavior AllowFocusedRow="True" />
                                <SettingsPager PageSize="5">
                                </SettingsPager>
                                <Settings ShowFilterRow="True" ShowGroupPanel="True" />
                                <Images SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                    <LoadingPanelOnStatusBar Url="~/App_Themes/BlackGlass/GridView/gvLoadingOnStatusBar.gif">
                                    </LoadingPanelOnStatusBar>
                                    <LoadingPanel Url="~/App_Themes/BlackGlass/GridView/Loading.gif">
                                    </LoadingPanel>
                                </Images>
                                <ImagesFilterControl>
                                    <LoadingPanel Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                                    </LoadingPanel>
                                </ImagesFilterControl>
                                <Styles CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" 
                                    CssPostfix="BlackGlass">
                                    <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                    </Header>
                                </Styles>
                                <StylesEditors>
                                    <CalendarHeader Spacing="1px">
                                    </CalendarHeader>
                                    <ProgressBar Height="25px">
                                    </ProgressBar>
                                </StylesEditors>
                            </dx:ASPxGridView>
                        </td>
                    </tr>
                    <tr>
                        <td class="style11">
                            <dx:ASPxPopupControl ID="pcMensaje" runat="server" ClientInstanceName="pcMensaje"
                                CloseAction="None" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass"
                                HeaderText="Mensaje" Height="98px" Modal="True" PopupHorizontalAlign="WindowCenter"
                                PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                Width="391px">
                                <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                                </LoadingPanelImage>
                                <ContentStyle HorizontalAlign="Left" VerticalAlign="Top">
                                </ContentStyle>
                                <HeaderStyle>
                                    <Paddings PaddingBottom="6px" PaddingLeft="15px" PaddingRight="6px" PaddingTop="3px" />
                                    <Paddings PaddingLeft="15px" PaddingTop="3px" PaddingRight="6px" PaddingBottom="6px">
                                    </Paddings>
                                </HeaderStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
                                        <table style="width: 100%;">
                                            <tr>
                                                <td align="center">
                                                    <dx:ASPxLabel ID="lblMensaje" runat="server">
                                                    </dx:ASPxLabel>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center">
                                                    <dx:ASPxButton ID="btnAceptar" runat="server" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                                        CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                                        Text="Aceptar">
                                                        <ClientSideEvents Click="function(s, e) {
	pcMensaje.Hide();
}" />
                                                        <ClientSideEvents Click="function(s, e) {
	pcMensaje.Hide();
}"></ClientSideEvents>
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style11">
                            <dx:ASPxPopupControl ID="pcAsignar" runat="server" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                Width="613px" ClientInstanceName="pcAsignar" CloseAction="None" HeaderText="Asignar Abogado"
                                Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
                                ShowCloseButton="False" Style="margin-top: 0px" Height="177px">
                                <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                                </LoadingPanelImage>
                                <ContentStyle HorizontalAlign="Left" VerticalAlign="Top">
                                </ContentStyle>
                                <HeaderStyle>
                                    <Paddings PaddingBottom="6px" PaddingLeft="15px" PaddingRight="6px" PaddingTop="3px" />
                                    <Paddings PaddingLeft="15px" PaddingTop="3px" PaddingRight="6px" PaddingBottom="6px">
                                    </Paddings>
                                </HeaderStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
                                        <table style="width: 100%;">
                                            <tr>
                                                <td>
                                                    <dx:ASPxLabel ID="ASPxLabel2" runat="server" Text="Abogado :">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td>
                                                    <dx:ASPxComboBox ID="cboAbogadoAsig" runat="server" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                                        CssPostfix="BlackGlass" Height="18px" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                                        Width="225px" AutoPostBack="true" OnSelectedIndexChanged="cboAbogadoAsig_SelectedIndexChanged">
                                                        <LoadingPanelImage Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                                                        </LoadingPanelImage>
                                                        <ButtonStyle Width="11px">
                                                        </ButtonStyle>
                                                        <ValidationSettings ErrorText="Error has occurred">
                                                            <ErrorFrameStyle ImageSpacing="4px">
                                                                <ErrorTextPaddings PaddingLeft="4px" />
                                                            </ErrorFrameStyle>
                                                        </ValidationSettings>
                                                    </dx:ASPxComboBox>
                                                </td>
                                                <td>
                                                    <asp:Label ID="Link_cboAbogado" runat="server" Style="font-family: Verdana; font-size: 10pt;
                                                        font-weight: bold; color: #FF0000; cursor: pointer;" Text="*" Visible="false"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="Fecha de Asignacion :">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td>
                                                    <dx:ASPxDateEdit ID="dtpFechaAsignacion" runat="server" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                                        CssPostfix="BlackGlass" Height="16px" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                                        Width="225px" AutoPostBack="True" OnDateChanged="dtpFechaAsignacion_DateChanged">
                                                        <CalendarProperties>
                                                            <HeaderStyle Spacing="1px" />
                                                            <FooterStyle Spacing="4px" />
                                                        </CalendarProperties>
                                                        <ButtonStyle Width="11px">
                                                        </ButtonStyle>
                                                        <ValidationSettings>
                                                            <ErrorFrameStyle ImageSpacing="4px">
                                                                <ErrorTextPaddings PaddingLeft="4px" />
                                                            </ErrorFrameStyle>
                                                        </ValidationSettings>
                                                    </dx:ASPxDateEdit>
                                                </td>
                                                <td>
                                                    <asp:Label ID="Link_Fecha" runat="server" Style="font-family: Verdana; font-size: 10pt;
                                                        font-weight: bold; color: #FF0000; cursor: pointer;" Text="*" Visible="false"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxLabel ID="ASPxLabel3" runat="server" Text="Detalle Correo">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="3">
                                                    <dx:ASPxMemo ID="txtMensajeCorreo" runat="server" Height="50px" Width="100%">
                                                    </dx:ASPxMemo>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right" class="style8" colspan="2">
                                                    <div>
                                                        <table style="width: 100%;">
                                                            <tr>
                                                                <td colspan="3">
                                                                    <asp:Label ID="lbl_msj" runat="server" ForeColor="Blue" Visible="false"></asp:Label>
                                                                    <asp:Label ID="lbl_correo" runat="server" ForeColor="red" Visible="false"></asp:Label>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    &nbsp;
                                                                </td>
                                                                <td class="style9">
                                                                    <div style="width: 206px">
                                                                        <table style="width: 100%;">
                                                                            <tr>
                                                                                <td>
                                                                                    <dx:ASPxButton ID="btnAsignar" runat="server" ClientInstanceName="btnAsignar" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                                                                        CssPostfix="BlackGlass" Height="16px" OnClick="btnAsignar_Click" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                                                                        Text="Asignar">
                                                                                    </dx:ASPxButton>
                                                                                </td>
                                                                                <td>
                                                                                    <dx:ASPxButton ID="btnCancelar" runat="server" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                                                                        CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                                                                        Text="Retornar">
                                                                                        <ClientSideEvents Click="function(s, e) {
	pcAsignar.Hide();
}" />
                                                                                    </dx:ASPxButton>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                </td>
                                                                <td>
                                                                    &nbsp;
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </div>
                                                </td>
                                                <td align="right" class="style8">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </dx:PanelContent>
        </PanelCollection>
    </dx:ASPxRoundPanel>
</asp:Content>
